package design_patterns.observer;

public class BinaryObserver extends Observer{
	
	public BinaryObserver(Subject subject) {
		this.subject=subject;
		this.subject.attch(this);
	}
	@Override
	public void update() {
		System.out.println("二进制观察者更新。。"+Integer.toBinaryString(this.subject.getState()));
	}

}
